package chepter04.example07;
class Animal{
}
class Dog extends Animal{
}
//定义测试类
public class Example07 {
    public static void main(String[] args) {
        Dog dog = new Dog();//创建Dog类的实例对象
    }
}

